package com.ai.study.dashscope.controller.prompt.config;

import com.alibaba.cloud.ai.prompt.ConfigurablePromptTemplateFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 提示词动态模版配置
 * @Author chenwei
 * @Date 2025/6/29 20:20
 */
@Configuration
public class PromptTemplateConfig {

    @Bean
    public ConfigurablePromptTemplateFactory configurablePromptTemplateFactory() {
        // 可以在构造器中传入配置
        return new ConfigurablePromptTemplateFactory();
    }
}
